package joyi.train.employee.service;

import j.data.tree.TreeData;
import j.framework.core.ServiceContext;
import joyi.train.employee.domain.Department;

import java.util.Map;

/**
 * Created by WY2015092804 on 2015/10/20.
 */
public interface DepartmentService {
    /**
     * 获取部门树形菜单
     * @param serviceContext
     * @return
     */
    Map<String,Object> getDepartmentTree(ServiceContext serviceContext);

    /**
     * 添加或修改部门信息
     * @param serviceContext
     */
    Department getDepartment(ServiceContext serviceContext);

    /**
     * 添加或修改部门信息
     * @param serviceContext
     */
    void saveOrUpdateDepartment(ServiceContext serviceContext);

    /**
     * 获取组合树
     * @param serviceContext
     * @return
     */
    TreeData getDepartmentCombotree(ServiceContext serviceContext);

    /**
     * 删除部门
     * @param serviceContext
     * @return
     */
    String delDepartment(ServiceContext serviceContext);

}
